'use strict'

module.exports = appInfo => {

    const cfgData = require('./index')

    const config = exports = {}

    config.sequelize = {
        host: cfgData.dbcfg.externalHost,
        username: 'root',
        password: 'Wolf072906220809!',
        port: 62135,
        // replication: {
        //     read: [
        //       { host: '192.168.99.100', username: 'root', password: '123', port: 3307 }
        //     ],
        //     write: { host: '192.168.99.100', username: 'root', password: '123', port: 3306 }
        // },
        dialect: 'mysql',
        database: 'DB_BCK_TEMP',
        define: {
            freezeTableName: true,
            underscored: false,
        },
        benchmark: true,
        timezone: '+08:00'      // 东八区
    }
    
    return config
}